export const isArray = function (obj) {
  if (!obj) {
    return;
  }
  var arrType = (typeof obj.push + "").toUpperCase();
  if (arrType == "UNDEFINED") {
    return false;
  } else {
    return true;
  }
};

export const isObject = function (obj) {
  if (!isArray(obj)) {
    var objType = (typeof obj + "").toUpperCase();
    if (objType == "OBJECT") {
      return true;
    }
  }
  return false;
};

export const isNumber = function (value) {
  var reg = /^[0-9]*$/;
  return reg.test(value);
};

export const isWord = function (value) {
  var reg = /^[A-z]*$/;
  return reg.test(value);
};
